/********************************************************************************
* File Name:	mainform.h
* Description:	第14章实例训练
* Reference book:《Linux环境下Qt4图形界面与MySQL编程》，机械工业出版社.2012.1
* E_mail: openlinux2011@gmail.com
*
********************************************************************************/
#ifndef MAINFORM_H
#define MAINFORM_H

#include <QWidget>
#include "gamearea.h"
#include <time.h>
namespace Ui {
    class Mainform;
}

class Mainform : public QWidget
{
    Q_OBJECT

public:
    explicit Mainform(QWidget *parent = 0);
    ~Mainform();
    int score;

private:
    Ui::Mainform *ui;
    GameArea *gameArea;
    QTimer *timer;
    int num;

private slots:
    void on_btnSpeedUp_clicked();
    void on_btnSlowDown_clicked();
    void on_btnList_clicked();
    void on_btnStart_clicked();
    void timer_upDate();
};

#endif // MAINFORM_H
